package com.wxy.test2.decoratorpattern;

public class ComponentDecorator extends Component{
    private Component component;

    public ComponentDecorator(Component component) {
        this.component = component;
    }

    @Override
    public void display() {
        component.display();
    }
}
